<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

$this->add_action('member_delete', 'album_member_delete');

function album_member_delete($username)
{
	$obj =& get_instance();
	//sary
	$obj->load->module_model('album', 'album_model');
	$obj->album_model->delete(array('username' => $username));
	$obj->album_model->delete_image(array('username' => $username));
	$obj->album_model->delete_comment(array('where' => array('username' => $username)));
	

}